[NET] front: Use netif_carrier to model backend-connection state.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 25 May 2006 13:29:21 +0000 (14:29 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 25 May 2006 13:29:21 +0000 (14:29 +0100)
commit4cebc4c9b20597d96855f41d39047cbda78335a4
treed0fe038e55344c5cf36fe3f1b9d36c48f6418840
parentf7ea0be1ff0c8884d2229813cb00080cc6f268df
[NET] front: Use netif_carrier to model backend-connection state.

The tristate backend_state really only needs to be a boolean.  In fact
other virtualisation network drivers such as the s390 already model this
using netif_carrier_*.  So by converting backend_state over to the net
carrier flag we can tap into existing infrastructure rather than creating
new ones.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c